package com.smart.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 产品属性分类表
 */
@ApiModel(value = "产品属性分类表")
@Data
@TableName(value = "product_attr_category")
public class ProductAttrCategory {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 产品属性分类名
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "产品属性分类名")
    private String name;

    /**
     * 属性数量
     */
    @TableField(value = "attr_count")
    @ApiModelProperty(value = "属性数量")
    private Integer attrCount;

    /**
     * 参数数量
     */
    @TableField(value = "param_count")
    @ApiModelProperty(value = "参数数量")
    private Integer paramCount;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_ATTR_COUNT = "attr_count";

    public static final String COL_PARAM_COUNT = "param_count";
}